
class Config:
    HOST='127.0.0.1'
    PORT=3306
    USERNAME='root'
    PASSWORD='123456'
    DB='toutiao'
    SQLALCHEMY_DATABASE_URI=f"mysql+pymysql://{USERNAME}:{PASSWORD}@{HOST}:{PORT}/{DB}?charset=utf8"
    SQLALCHEMY_TRACK_MODIFICATIONS = False  # 追踪数据的修改信号
    SQLALCHEMY_ECHO = True

    REDIS_URL ="redis://:@localhost:6379/0"